<template>
  <div class="right">
    <div class="top">
      <span> 内容类型</span>
    </div>
    <div class="scroll">
      <div class="content" v-for="item in card" :key="item.name">
        <div class="card">
          <i :class="item.icon"></i>
          <span>{{ item.name }}</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "right",
  data() {
    return {
      card: [
        {
          icon: "el-icon-edit",
          name: "单行字符串",
        },
        {
          icon: "el-icon-edit-outline",
          name: "多行字符串",
        },
        {
          icon: "el-icon-info",
          name: "数字",
        },
        {
          icon: "el-icon-check",
          name: "布尔值",
        },
        {
          icon: "el-icon-film",
          name: "枚举",
        },
        {
          icon: "el-icon-date",
          name: "日期",
        },
        {
          icon: "el-icon-date",
          name: "日期与时间",
        },
        {
          icon: "el-icon-folder",
          name: "文件",
        },
        {
          icon: "el-icon-picture",
          name: "图片",
        },
        {
          icon: "el-icon-video-camera",
          name: "多媒体",
        },
        {
          icon: "el-icon-message",
          name: "邮箱地址",
        },
        {
          icon: "el-icon-phone-outline",
          name: "电话号码",
        },
        {
          icon: "el-icon-link",
          name: "网址",
        },
        {
          icon: "el-icon-document",
          name: "富文本",
        },
        {
          icon: "el-icon-download",
          name: "Markdowm",
        },
        {
          icon: "el-icon-attract",
          name: "关联",
        },
        {
          icon: "el-icon-s-grid",
          name: "数组",
        },
        {
          icon: "el-icon-attract",
          name: "JSON对象",
        },
      ],
    };
  },
};
</script>

<style lang="less" scoped>
.right {
  .top {
    font-size: 24px;
    padding: 20px 10px;
  }
  .scroll {
    overflow: auto;
    height: 430px;
    .content {
      background-color: #fff;
      margin: 20px 10px 20px 0;
      .card {
        cursor: pointer;
        display: flex;
        padding: 35px;
        justify-content: space-between;
        transition-duration: 0.3s;
        i {
          font-size: 30px;
        }
        span {
          font-size: 16px;
          color: rgba(0, 0, 0, 0.85);
        }
      }
      .card:hover {
        // -webkit-box-shadow: #ccc 10px 10px 10px;
        // -moz-box-shadow: #ccc 10px 10px 10px;
        box-shadow: #ccc 10px 10px 10px;
      }
    }
  }
}
</style>
